package com.yunchang.springboot.models.DO;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.yunchang.springboot.base.Column;
import com.yunchang.springboot.base.Id;
import com.yunchang.springboot.base.Table;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 收付款单(马帮api)
 * bills_data
 * @author WeiziPlus
 * @date 2019-09-03 11:03:45
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@Data
@Table("caravan_bills_data")
public class CaravanBillsData implements Serializable {
    /**
     */
    @Id("id")
    private Long id;

    /**
     * 数据获取日期
     */
    @Column("date")
    private String date;

    /**
     */
    @Column("company_id")
    private String companyId;

    /**
     * 费用单号
     */
    @Column("payment_order_id")
    private String paymentOrderId;

    /**
     * 关联单号
     */
    @Column("order_num")
    private String orderNum;

    /**
     * 1688单号
     */
    @Column("ali1688_order_id")
    private String ali1688OrderId;

    /**
     * 账号
     */
    @Column("account_id")
    private String accountId;

    /**
     * 账号
     */
    @Column("account_name")
    private String accountName;

    /**
     * 费用类型1收款单  2 付款单  3费用单
     */
    @Column("order_type")
    private String orderType;

    /**
     * 币种
     */
    @Column("currency")
    private String currency;

    /**
     * 收付款类型
     */
    @Column("payment_term")
    private String paymentTerm;

    /**
     */
    @Column("payment_term_id")
    private String paymentTermId;

    /**
     * 付款方式
     */
    @Column("payment_term_desc")
    private String paymentTermDesc;

    /**
     * 供应商id
     */
    @Column("payment_supplier_id")
    private String paymentSupplierId;

    /**
     * 供应商
     */
    @Column("payment_supplier_name")
    private String paymentSupplierName;

    /**
     * 应收应付金额
     */
    @Column("total_amount")
    private BigDecimal totalAmount;

    /**
     * 实收实付金额
     */
    @Column("amount")
    private BigDecimal amount;

    /**
     * 状态1未确认 2已确认 3已完成 9删除
     */
    @Column("status")
    private String status;

    /**
     * 预计付款收款时间
     */
    @Column("prepay_time")
    private String prepayTime;

    /**
     */
    @Column("creater_id")
    private String createrId;

    /**
     * 创建人
     */
    @Column("creater_name")
    private String createrName;

    /**
     * 创建时间
     */
    @Column("create_time")
    private String createTime;

    /**
     */
    @Column("update_time")
    private String updateTime;

    /**
     */
    @Column("auditor_id")
    private String auditorId;

    /**
     * 审核人
     */
    @Column("auditor")
    private String auditor;

    /**
     */
    @Column("payer_id")
    private String payerId;

    /**
     * 收款付款人名称
     */
    @Column("payer_name")
    private String payerName;

    /**
     * 收款付款人完成时间
     */
    @Column("pay_time")
    private String payTime;

    /**
     */
    @Column("comment")
    private String comment;

    /**
     */
    @Column("handle_status")
    private Integer handleStatus;

    private static final long serialVersionUID = 1L;
}